<style>
    .wrapper2 {min-height:400px;width:728px;float:right;padding-right:10px;border:1px solid #EDEDED;margin-top:22px;padding-left:20px}
    .wrapper2-right{float:left;width:200px}
    .title-right{color:green;font-size:15px;font-weight:bold;border-bottom:2px solid #EDEDED}
    .body-right{min-height:50px}
    input.url{width:500px;color:red;font-style:italic;font-size:13px;border:none;background:none;float:left}
</style>
<div class="wrapper clearfix">
    <div class="wrapper2">
       <?php
            if(!empty($email)){
                echo '<ul>';
                foreach($email as $ml){
                    $user=$this->common_model->getone('users',array('email'=>$ml->email_from));
                    if($ml->status==0){$bien=' class="chuadoc" ';}else{$bien='';}
                    echo '<li><a href="',base_url(),'email/chi-tiet/',$ml->id,'.html"><span style="font-weight:bold;color:black">Từ : </span><span ',$bien,' style="font-size:14px"> ',$user->firstname,' ',$user->name,'&nbsp;&nbsp&nbsp; - ',$ml->subjects,'</span>&nbsp;&nbsp&nbsp;<span class="date">',date("H:i:s  \N\g\à\y  d-m-Y", strtotime($ml->date)),'</span></a></li>';
                }
                echo '</ul>';
            }else{
                echo 'Không có thư nào';
            }
       ?>
       <div class="page_navi">
                    <?php echo $this->pagination->create_links();?>
				</div>
    </div>
    <?php $this->load->view('mod_email/menu');?>
</div>